﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using Model.App_GlobalResources;

namespace Model.Models
{
    public class IngredienteModel
    {
        [Required]
        [Display(Name = "Ingrediente")]
        public int Id_Ingrediente { get; set; }

        [Required]
        [Display(Name = "Nome da empresa")]
        public int Id_Empresa { get; set; }

        [Display(Name = "Nome da empresa")]
        public string NomeEmpresa { get; set; }

        [Required(ErrorMessageResourceType = typeof(Resource_br_pt), ErrorMessageResourceName = "DescricaoIngredienteRequerido")]
        [StringLength(20, MinimumLength = 3)]
        [Display(Name = "Descrição")]
        public string Descricao { get; set; }
    }
}
